//Hard to Kill - Instant Kill (Code to survive touching instant-kill sectors or crashing minecarts at the expense of taking damage and 25% energy (with the cost increasing to 50% energy with 0 rings and no shield))
/*Pseudocode
addHook("ShouldDamage", function(target, inflictor, source, damage, damagetype) --Target = player.mo (Annie), inflictor & source = any, damage = any, damagetype = DMG_INSTAKILL
	if player.mo and player.mo.valid then
	
		if player.mo.skin ~= "annie_belnades" then
			return
		end
		
		if player.mo.energy >= 25*FRACUNIT
		and player.rings > 0 or p.powers[pw_shield] > 0 then
			if damagetype == DMG_INSTAKILL then
				Prevent death, replace with damage (lose Rings or shield, take knockback (PA_PAIN))
				player.mo.energy = $ - 25 --Reduce player.var.energy by 25
				player.mo.deathdefiance = 3 --Pause energy regeneration for 3 seconds
			end
		end
			
		if player.mo.energy >= 50*FRACUNIT
		and player.rings == 0 and player.powers[pw_shield] == 0 then
			if damagetype == DMG_INSTAKILL
				Prevent death, take knockback (PA_PAIN)
					This counts as taking damage
				player.mo.energy = $ - 50 --Reduce player.var.energy by 50
				player.mo.deathdefiance = 3 --Pause energy regeneration for 3 seconds
			end
		end
	end
end, MT_PLAYER)*/